Skip to content

Comments

Add unique_ref to distribute function and Distribution event#123

Merged
mubarak23 merged 1 commit intomainfrom
refactor_distribute
Jul 3, 2025
Merged

Add unique_ref to distribute function and Distribution event#123
mubarak23 merged 1 commit intomainfrom
refactor_distribute

Conversation

@mubarak23
Copy link
Contributor

@mubarak23 mubarak23 commented Jul 2, 2025

closes #122

This PR introduces support for a new field unique_ref: felt252 in the distribute function. This value acts as a unique identifier for each distribution call and is included in the emitted Distribution event.

✅ Changes Introduced
Function Signature Updated:
The distribute function now accepts an additional argument:

Event Struct Modified:
The Distribution event now includes a new field:

Event Emission Updated:
Emitted Distribution events now include the unique_ref passed to the function.

indexers.

@mubarak23 mubarak23 requested a review from Utilitycoder July 2, 2025 15:07
@mubarak23 mubarak23 self-assigned this Jul 2, 2025
@mubarak23 mubarak23 merged commit b4a7194 into main Jul 3, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distribute function should accept unique_ref: felt252 field

1 participant